cgma
GeometryContext::NamedGroup Class Reference

List of all members.

Public Member Functions

 NamedGroup ()
 NamedGroup (std::string name_p)
const std::string & getName () const
const entity_collection_tgetEntities () const
void add (iBase_EntityHandle new_handle)
void update (iBase_EntityHandle old_h, iBase_EntityHandle new_h)
bool contains (iBase_EntityHandle handle) const

Protected Attributes

std::string name
entity_collection_t entities

Detailed Description

Definition at line 184 of file mcnp2cad.cpp.


Constructor & Destructor Documentation

Definition at line 189 of file mcnp2cad.cpp.

: name("") {}
GeometryContext::NamedGroup::NamedGroup ( std::string  name_p) [inline]

Definition at line 190 of file mcnp2cad.cpp.

                                  :
      name(name_p)
    {}

Member Function Documentation

Definition at line 197 of file mcnp2cad.cpp.

                                             {
      entities.push_back(new_handle);
    }

Definition at line 213 of file mcnp2cad.cpp.

                                                     {
      return std::find( entities.begin(), entities.end(), handle ) != entities.end(); 
    }

Definition at line 195 of file mcnp2cad.cpp.

{ return entities; }
const std::string& GeometryContext::NamedGroup::getName ( ) const [inline]

Definition at line 194 of file mcnp2cad.cpp.

{ return name; }

Definition at line 201 of file mcnp2cad.cpp.

                                                                     {
      entity_collection_t::iterator i = std::find( entities.begin(), entities.end(), old_h );
      if( i != entities.end() ){
        if( new_h ){
          *i = new_h;
        }
        else {
          entities.erase( i );
        }
      }
    }

Member Data Documentation

std::string GeometryContext::NamedGroup::name [protected]

Definition at line 186 of file mcnp2cad.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines