SheafSystem  0.0.0.0
sheaf::namespace_relative_member_index Struct Reference

Index for identifying a poset member relative to a given name space. More...

#include <namespace_relative_member_index.h>

Public Types

typedef namespace_relative_member_index_pod_type pod_type
 The POD (plain old data) type associated this. More...
 

Public Member Functions

 namespace_relative_member_index ()
 Default constructor. More...
 
 namespace_relative_member_index (const index_space_handle &xid_space, const pod_type &xpod)
 Constructor from pod_type. More...
 
bool operator== (const namespace_relative_member_index &xother) const
 Equality operator. More...
 
bool is_valid () const
 True if this is a valid id. More...
 
void invalidate ()
 Make this invalid. More...
 
pod_type pod () const
 The "plain old data" storage of this. More...
 
void put_pod (pod_type xpod)
 Sets pod() to xpod. More...
 

Static Public Member Functions

static const namespace_relative_member_indexINVALID ()
 The invalid id. More...
 

Public Attributes

scoped_index poset_id
 The index of the poset relative to the namespace. More...
 
scoped_index member_id
 The index of the member relative to the poset. More...
 

Detailed Description

Index for identifying a poset member relative to a given name space.

Definition at line 41 of file namespace_relative_member_index.h.

Member Typedef Documentation

◆ pod_type

The POD (plain old data) type associated this.

Definition at line 47 of file namespace_relative_member_index.h.

Constructor & Destructor Documentation

◆ namespace_relative_member_index() [1/2]

sheaf::namespace_relative_member_index::namespace_relative_member_index ( )
inline

Default constructor.

Postcondition
  • !is_valid()

Definition at line 52 of file namespace_relative_member_index.h.

References sheaf::is_valid().

◆ namespace_relative_member_index() [2/2]

sheaf::namespace_relative_member_index::namespace_relative_member_index ( const index_space_handle xid_space,
const pod_type xpod 
)
inlineexplicit

Constructor from pod_type.

Postcondition
  • (pod() == xpod) || !is_valid()

Definition at line 69 of file namespace_relative_member_index.h.

References sheaf::is_valid().

Member Function Documentation

◆ INVALID()

static const namespace_relative_member_index& sheaf::namespace_relative_member_index::INVALID ( )
inlinestatic

The invalid id.

Postcondition

Definition at line 158 of file namespace_relative_member_index.h.

References is_valid().

◆ invalidate()

void sheaf::namespace_relative_member_index::invalidate ( )
inline

Make this invalid.

Postcondition
  • !is_valid()

Definition at line 137 of file namespace_relative_member_index.h.

References sheaf::scoped_index::invalidate(), and sheaf::is_valid().

◆ is_valid()

bool sheaf::namespace_relative_member_index::is_valid ( ) const
inline

True if this is a valid id.

Definition at line 117 of file namespace_relative_member_index.h.

References sheaf::scoped_index::is_valid().

Referenced by INVALID().

◆ operator==()

bool sheaf::namespace_relative_member_index::operator== ( const namespace_relative_member_index xother) const
inline

Equality operator.

Postcondition
  • result == ((poset_id == xother.poset_id) && (member_id == xother.member_id))

Definition at line 95 of file namespace_relative_member_index.h.

References member_id, and poset_id.

◆ pod()

pod_type sheaf::namespace_relative_member_index::pod ( ) const
inline

The "plain old data" storage of this.

Definition at line 180 of file namespace_relative_member_index.h.

References sheaf::scoped_index::pod().

Referenced by sheaf::primitive_value::primitive_value().

◆ put_pod()

void sheaf::namespace_relative_member_index::put_pod ( pod_type  xpod)
inline

Sets pod() to xpod.

Postcondition
  • pod() == xpod || !is_valid()

Definition at line 192 of file namespace_relative_member_index.h.

References sheaf::is_valid(), and sheaf::scoped_index::put_pod().

Member Data Documentation

◆ member_id

scoped_index sheaf::namespace_relative_member_index::member_id

The index of the member relative to the poset.

Definition at line 90 of file namespace_relative_member_index.h.

Referenced by sheaf::operator<<(), operator==(), sheaf::operator>>(), and fiber_bundle::base_space_member::prototype_path().

◆ poset_id

scoped_index sheaf::namespace_relative_member_index::poset_id

The index of the poset relative to the namespace.

Definition at line 80 of file namespace_relative_member_index.h.

Referenced by sheaf::operator<<(), operator==(), sheaf::operator>>(), and fiber_bundle::base_space_member::prototype_path().


The documentation for this struct was generated from the following file: