MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / Set

Method Set

src/variables.cpp:440–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440VarValue *VarTable::Set( const wxString &name, const VarValue &val )
441{
442 VarValue *vv = 0;
443 iterator it = find( name );
444 if ( it == end() )
445 {
446 vv = new VarValue(val);
447 (*this)[ name ] = vv;
448 }
449 else
450 {
451 it->second->Copy(val);
452 vv = it->second;
453 }
454 return vv;
455}
456
457VarValue *VarTable::Get( const wxString &name )
458{

Callers 2

ReadMethod · 0.45
ParseMethod · 0.45

Calls 5

sizeMethod · 0.80
resize_fillMethod · 0.80
assignMethod · 0.80
CopyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected