cgv
Loading...
Searching...
No Matches
cgv::ppp::namespace_info Struct Reference

for each namespace the following information is stored More...

#include <variables.h>

Public Member Functions

namespace_infoget_environment ()
 
 namespace_info (bool _is_function_call_ns, variant::map_type *_ns=0, namespace_info *_environment_ns=0, namespace_info *_parent_ns=0)
 

Public Attributes

bool is_function_call_ns
 
variant::map_type * ns
 
bool ns_allocated
 
namespace_infoenvironment_ns
 
namespace_infoparent_ns
 
namespace_infochild_ns
 

Detailed Description

for each namespace the following information is stored

  • whether the namespace is a real namespace or the namespace created by a function call
  • the environment namespace whose symbols are visible in the current namespace
  • the parent namespace that triggered creation of this namespace and will be activated on destruction
  • the child namespace which is the next namespace created in the current namespace
  • the map from names to variants

Definition at line 19 of file variables.h.

Constructor & Destructor Documentation

◆ namespace_info()

cgv::ppp::namespace_info::namespace_info ( bool  _is_function_call_ns,
variant::map_type *  _ns = 0,
namespace_info _environment_ns = 0,
namespace_info _parent_ns = 0 
)

Definition at line 17 of file variables.cxx.

◆ ~namespace_info()

cgv::ppp::namespace_info::~namespace_info ( )

Definition at line 25 of file variables.cxx.

Member Function Documentation

◆ get_environment()

namespace_info * cgv::ppp::namespace_info::get_environment ( )
inline

Definition at line 28 of file variables.h.

Member Data Documentation

◆ child_ns

namespace_info* cgv::ppp::namespace_info::child_ns

Definition at line 26 of file variables.h.

◆ environment_ns

namespace_info* cgv::ppp::namespace_info::environment_ns

Definition at line 24 of file variables.h.

◆ is_function_call_ns

bool cgv::ppp::namespace_info::is_function_call_ns

Definition at line 21 of file variables.h.

◆ ns

variant::map_type* cgv::ppp::namespace_info::ns

Definition at line 22 of file variables.h.

◆ ns_allocated

bool cgv::ppp::namespace_info::ns_allocated

Definition at line 23 of file variables.h.

◆ parent_ns

namespace_info* cgv::ppp::namespace_info::parent_ns

Definition at line 25 of file variables.h.


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