public final class StructureMembers extends Object
Modifier and Type | Class and Description |
---|---|
class |
StructureMembers.Member
A member of a StructureData.
|
Constructor and Description |
---|
StructureMembers(String name) |
StructureMembers(StructureMembers from) |
Modifier and Type | Method and Description |
---|---|
void |
addMember(int pos,
StructureMembers.Member m)
Add a member at the given position.
|
StructureMembers.Member |
addMember(String name,
String desc,
String units,
DataType dtype,
int[] shape) |
void |
addMember(StructureMembers.Member m)
Add a member.
|
StructureMembers.Member |
findMember(String memberName)
Find the member by its name.
|
StructureMembers.Member |
getMember(int index)
Get the index-th member
|
List<String> |
getMemberNames()
Get the names of the members.
|
List<StructureMembers.Member> |
getMembers()
Get the list of Member objects.
|
String |
getName()
Get the name.
|
int |
getStructureSize()
Get the total size of the Structure in bytes.
|
int |
hideMember(StructureMembers.Member m)
Remove the given member
|
void |
setStructureSize(int structureSize)
Set the total size of the Structure in bytes.
|
String |
toString() |
public StructureMembers(String name)
public StructureMembers(StructureMembers from)
public String getName()
public void addMember(StructureMembers.Member m)
m
- member to addpublic void addMember(int pos, StructureMembers.Member m)
m
- member to addpublic StructureMembers.Member addMember(String name, String desc, String units, DataType dtype, int[] shape)
public int hideMember(StructureMembers.Member m)
m
- memberpublic int getStructureSize()
public void setStructureSize(int structureSize)
structureSize
- set to this valuepublic List<StructureMembers.Member> getMembers()
public List<String> getMemberNames()
public StructureMembers.Member getMember(int index)
index
- of memberpublic StructureMembers.Member findMember(String memberName)
memberName
- find by this name