MeVisLab Toolbox Reference
ml::omAttributesVector Class Reference

Manages one layer of information. More...

#include <ObjMgr/mlObjMgrAttribute.h>

Inheritance diagram for ml::omAttributesVector:

Public Types

typedef inherited::iterator iterator
 
typedef inherited::const_iterator const_iterator
 

Public Member Functions

 omAttributesVector ()
 
 omAttributesVector (const omAttributesVector &v)
 
 ~omAttributesVector ()
 
const omIDTypegetID () const
 Get method for layer ID. More...
 
omObjectparent ()
 Writable parent access. More...
 
const omObjectparent () const
 Read-Only parent access. More...
 
omFlagsflags ()
 Writable flags access. More...
 
const omFlagsflags () const
 Read-Only flags access. More...
 
bool isValid () const
 Returns true if attributes vector is valid. More...
 
omAttributesVectoroperator= (const omAttributesVector &v)
 Assignment operator. More...
 
omAttributeoperator[] (const omIDType &infoID)
 Returns reference to attribute of specified information ID. More...
 
const omAttributeoperator[] (const omIDType &infoID) const
 Returns read only reference to attribute of specified information ID. More...
 
void erase (const omIDType &infoID)
 Erase the information item whose information ID is given. More...
 
void clear ()
 Remove all information items from layer. More...
 
size_t size () const
 Get number of information items. More...
 
bool empty () const
 True if there are no information stored in this layer. More...
 
inherited::iterator begin ()
 Returns an iterator pointing to the beginning of the attributes vector. More...
 
inherited::iterator end ()
 Returns an iterator pointing to the end of the attributes vector. More...
 
inherited::const_iterator begin () const
 Returns a const_iterator pointing to the beginning of the attributes vector. More...
 
inherited::const_iterator end () const
 Returns a const_iterator pointing to the end of the attributes vector. More...
 
void markValid (bool trueOrFalse)
 

Protected Attributes

omFlags _flags
 Special flags. More...
 
omObject_parent
 
bool _isValid
 
omIDType _id
 ID of the layer. More...
 

Friends

class omObject
 

Detailed Description

Manages one layer of information.

Declare what is to be a layer of information e.g. Key: item (e.g. attribute name, instance name of module) Contents: Attributes or value of this item (e.g. this very instance)

Definition at line 148 of file mlObjMgrAttribute.h.

Member Typedef Documentation

◆ const_iterator

typedef inherited::const_iterator ml::omAttributesVector::const_iterator

Definition at line 169 of file mlObjMgrAttribute.h.

◆ iterator

typedef inherited::iterator ml::omAttributesVector::iterator

Definition at line 168 of file mlObjMgrAttribute.h.

Constructor & Destructor Documentation

◆ omAttributesVector() [1/2]

ml::omAttributesVector::omAttributesVector ( )

◆ omAttributesVector() [2/2]

ml::omAttributesVector::omAttributesVector ( const omAttributesVector v)

◆ ~omAttributesVector()

ml::omAttributesVector::~omAttributesVector ( )

Member Function Documentation

◆ begin() [1/2]

inherited::iterator ml::omAttributesVector::begin ( )
inline

Returns an iterator pointing to the beginning of the attributes vector.

Definition at line 231 of file mlObjMgrAttribute.h.

◆ begin() [2/2]

inherited::const_iterator ml::omAttributesVector::begin ( ) const
inline

Returns a const_iterator pointing to the beginning of the attributes vector.

Definition at line 240 of file mlObjMgrAttribute.h.

◆ clear()

void ml::omAttributesVector::clear ( )

Remove all information items from layer.

◆ empty()

bool ml::omAttributesVector::empty ( ) const
inline

True if there are no information stored in this layer.

Definition at line 226 of file mlObjMgrAttribute.h.

◆ end() [1/2]

inherited::iterator ml::omAttributesVector::end ( )
inline

Returns an iterator pointing to the end of the attributes vector.

Definition at line 235 of file mlObjMgrAttribute.h.

◆ end() [2/2]

inherited::const_iterator ml::omAttributesVector::end ( ) const
inline

Returns a const_iterator pointing to the end of the attributes vector.

Definition at line 244 of file mlObjMgrAttribute.h.

◆ erase()

void ml::omAttributesVector::erase ( const omIDType infoID)

Erase the information item whose information ID is given.

◆ flags() [1/2]

omFlags& ml::omAttributesVector::flags ( )
inline

Writable flags access.

Definition at line 190 of file mlObjMgrAttribute.h.

◆ flags() [2/2]

const omFlags& ml::omAttributesVector::flags ( ) const
inline

Read-Only flags access.

Definition at line 194 of file mlObjMgrAttribute.h.

◆ getID()

const omIDType& ml::omAttributesVector::getID ( ) const
inline

Get method for layer ID.

Definition at line 176 of file mlObjMgrAttribute.h.

◆ isValid()

bool ml::omAttributesVector::isValid ( void  ) const
inline

Returns true if attributes vector is valid.

Definition at line 199 of file mlObjMgrAttribute.h.

◆ markValid()

void ml::omAttributesVector::markValid ( bool  trueOrFalse)
inline

Definition at line 250 of file mlObjMgrAttribute.h.

◆ operator=()

omAttributesVector& ml::omAttributesVector::operator= ( const omAttributesVector v)

Assignment operator.

◆ operator[]() [1/2]

omAttribute& ml::omAttributesVector::operator[] ( const omIDType infoID)

Returns reference to attribute of specified information ID.

Creates attributes vector if not yet existent.

◆ operator[]() [2/2]

const omAttribute& ml::omAttributesVector::operator[] ( const omIDType infoID) const

Returns read only reference to attribute of specified information ID.

Returns invalid attributes vector if not yet existent (Check with isValid()).

◆ parent() [1/2]

omObject* ml::omAttributesVector::parent ( )
inline

Writable parent access.

Definition at line 181 of file mlObjMgrAttribute.h.

◆ parent() [2/2]

const omObject* ml::omAttributesVector::parent ( ) const
inline

Read-Only parent access.

Definition at line 185 of file mlObjMgrAttribute.h.

◆ size()

size_t ml::omAttributesVector::size ( ) const
inline

Get number of information items.

Definition at line 221 of file mlObjMgrAttribute.h.

Friends And Related Function Documentation

◆ omObject

friend class omObject
friend

Definition at line 150 of file mlObjMgrAttribute.h.

Member Data Documentation

◆ _flags

omFlags ml::omAttributesVector::_flags
protected

Special flags.

Definition at line 157 of file mlObjMgrAttribute.h.

◆ _id

omIDType ml::omAttributesVector::_id
protected

ID of the layer.

Definition at line 164 of file mlObjMgrAttribute.h.

◆ _isValid

bool ml::omAttributesVector::_isValid
protected

Definition at line 161 of file mlObjMgrAttribute.h.

◆ _parent

omObject* ml::omAttributesVector::_parent
protected

Definition at line 159 of file mlObjMgrAttribute.h.


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