GetFEM++  5.3
dal Namespace Reference

Dynamic Array Library. More...

Classes

struct  dna_const_iterator
 Constant iterator class for dynamic array. More...
 
struct  dna_iterator
 Iterator class for dynamic array. More...
 
class  dynamic_array
 Dynamic Array. More...
 
struct  enr_static_stored_object
 Pointer to an object with the dependencies. More...
 
struct  enr_static_stored_object_key
 Pointer to a key with a coherent order. More...
 
class  naming_system
 Associate a name to a method descriptor and store method descriptors. More...
 
class  singleton
 singleton class. More...
 
class  static_stored_object
 base class for static stored objects More...
 
struct  stored_object_tab
 Table of stored objects. More...
 

Functions

bool exists_stored_object (pstatic_stored_object o)
 Test if an object is stored.
 
pstatic_stored_object search_stored_object (pstatic_stored_object_key k)
 Gives a pointer to an object from a key pointer. More...
 
void test_stored_objects (void)
 Test the validity of the whole global storage.
 
void add_dependency (pstatic_stored_object o1, pstatic_stored_object o2)
 Add a dependency, object o1 will depend on object o2. More...
 
bool del_dependency (pstatic_stored_object o1, pstatic_stored_object o2)
 remove a dependency. More...
 
void add_stored_object (pstatic_stored_object_key k, pstatic_stored_object o, permanence perm=STANDARD_STATIC_OBJECT)
 Add an object with two optional dependencies. More...
 
void del_stored_objects (std::list< pstatic_stored_object > &to_delete, bool ignore_unstored)
 Delete a list of objects and their dependencies.
 
void del_stored_object (const pstatic_stored_object &o, bool ignore_unstored=false)
 Delete an object and the object which depend on it. More...
 
void list_stored_objects (std::ostream &ost)
 Show a list of stored objects (for debugging purpose). More...
 
size_t nb_stored_objects (void)
 Return the number of stored objects (for debugging purpose). More...
 
void del_stored_objects (int perm)
 Delete all the object whose permanence is greater or equal to perm. More...
 
template<typename OBJECT_TYPE >
void delete_specific_type_stored_objects (bool all_thread=false)
 delete all the specific type of stored objects
 

Detailed Description

Dynamic Array Library.

Function Documentation

pstatic_stored_object dal::search_stored_object ( pstatic_stored_object_key  k)

Gives a pointer to an object from a key pointer.

Definition at line 183 of file dal_static_stored_objects.cc.

void dal::add_dependency ( pstatic_stored_object  o1,
pstatic_stored_object  o2 
)

Add a dependency, object o1 will depend on object o2.

Definition at line 236 of file dal_static_stored_objects.cc.

bool dal::del_dependency ( pstatic_stored_object  o1,
pstatic_stored_object  o2 
)

remove a dependency.

Return true if o2 has no more dependent object.

Definition at line 266 of file dal_static_stored_objects.cc.

void dal::add_stored_object ( pstatic_stored_object_key  k,
pstatic_stored_object  o,
permanence  perm = STANDARD_STATIC_OBJECT 
)

Add an object with two optional dependencies.

Definition at line 300 of file dal_static_stored_objects.cc.

void dal::del_stored_object ( const pstatic_stored_object &  o,
bool  ignore_unstored = false 
)

Delete an object and the object which depend on it.

Definition at line 406 of file dal_static_stored_objects.cc.

void dal::list_stored_objects ( std::ostream &  ost)

Show a list of stored objects (for debugging purpose).

Definition at line 431 of file dal_static_stored_objects.cc.

size_t dal::nb_stored_objects ( void  )

Return the number of stored objects (for debugging purpose).

Definition at line 447 of file dal_static_stored_objects.cc.

void dal::del_stored_objects ( int  perm)

Delete all the object whose permanence is greater or equal to perm.