variable ()
variable (const variable &)
variable (const char *Name, const char *Value)
~variable ()
variable & operator= (const variable &Other)
void take (const char *Value)
const std::string * get_element (unsigned Idx) const
std::string name
std::vector< std::string > value
std::string original
Definition at line 183 of file getpot.h.
Definition at line 2066 of file getpot.h.
{}
Definition at line 2072 of file getpot.h.
References GetPot::operator=().
{
#ifdef WIN32
operator=(Other);
#else
GetPot::variable::operator=(Other);
#endif
}
Definition at line 2084 of file getpot.h.
References take().
: name(Name)
{
// make a copy of the 'Value'
take(Value);
}
Definition at line 2123 of file getpot.h.
{}
Definition at line 2094 of file getpot.h.
Referenced by GetPot::operator()().
{ if( Idx >= value.size() ) return 0; else return &(value[Idx]); }
Definition at line 2129 of file getpot.h.
References name, Quality::name(), original, and value.
{
if( &Other != this) {
name = Other.name;
value = Other.value;
original = Other.original;
}
return *this;
}
Definition at line 2100 of file getpot.h.
Referenced by variable().
{
original = std::string(Value);
// separate string by white space delimiters using 'strtok'
// thread safe usage of strtok (no static members)
char* spt = 0;
// make a copy of the 'Value'
char* copy = new char[std::strlen(Value)+1];
std::strcpy(copy, Value);
char* follow_token = strtok_r(copy, ' , &spt);
if( value.size() != 0 ) value.erase(value.begin(), value.end());
while(follow_token != 0) {
value.push_back(std::string(follow_token));
follow_token = strtok_r(NULL, ' , &spt);
}
delete [] copy;
}
Definition at line 202 of file getpot.h.
Referenced by GetPot::__DBE_expand(), GetPot::__DBE_get_variable(), and operator=().
Definition at line 204 of file getpot.h.
Referenced by GetPot::__DBE_expand(), GetPot::__DBE_get_variable(), GetPot::operator()(), and operator=().
Definition at line 203 of file getpot.h.
Referenced by operator=(), and GetPot::vector_variable_size().
Generated automatically by Doxygen for libMesh from the source code.