61 void add(
const unsigned int);
64 void add(
const std::string);
94 bool isIn(
unsigned int)
const;
std::string toString() const
return the list in a handy/compact format (compact interval, i.e. 4,5,6 becomes 4-6, ...)
Definition: TargetList.cpp:157
void clear()
clear the list
Definition: TargetList.cpp:151
std::string toAnsys() const
return the ANSYS command to select the list of target (only work for indexed targets) ...
Definition: TargetList.cpp:200
std::vector< unsigned int > indexedTargetList
list of indexed target = index of the entities
Definition: TargetList.h:98
int getIndexedTarget(const unsigned int) const
get an indexed target
Definition: TargetList.cpp:135
void add(const unsigned int)
add a load using an integer
Definition: TargetList.cpp:41
unsigned int getNumberOfTargets() const
get the nr of indevidual targets
Definition: TargetList.cpp:126
Manage a list of targets, can be created/modified using either an integer, a name, a list of integers given in a string (e.g.
Definition: TargetList.h:45
TargetList()
default constructor, the target list is empty
Definition: TargetList.cpp:30
std::string getNamedTarget(const unsigned int) const
get a named target
Definition: TargetList.cpp:143
bool indexedTargets() const
return true only if the list of target are indexes
Definition: TargetList.cpp:243
std::vector< std::string > namedTargetList
list of named target = name of the entities
Definition: TargetList.h:101
bool isIn(unsigned int) const
return true only if this is the list of target are indexes and the given index is in the list or if t...
Definition: TargetList.cpp:248