mirror of
https://github.com/Xahau/xahaud.git
synced 2026-07-26 00:20:20 +00:00
Improve the readability of STBase-derived types
* Increase the visibility of each type's API. * No functional changes.
This commit is contained in:
committed by
Nik Bougalis
parent
72377e7bf2
commit
74e6ed1af3
@@ -89,6 +89,18 @@ STArray::STArray(SerialIter& sit, SField const& f, int depth) : STBase(f)
|
||||
}
|
||||
}
|
||||
|
||||
STBase*
|
||||
STArray::copy(std::size_t n, void* buf) const
|
||||
{
|
||||
return emplace(n, buf, *this);
|
||||
}
|
||||
|
||||
STBase*
|
||||
STArray::move(std::size_t n, void* buf)
|
||||
{
|
||||
return emplace(n, buf, std::move(*this));
|
||||
}
|
||||
|
||||
std::string
|
||||
STArray::getFullText() const
|
||||
{
|
||||
@@ -153,6 +165,12 @@ STArray::add(Serializer& s) const
|
||||
}
|
||||
}
|
||||
|
||||
SerializedTypeID
|
||||
STArray::getSType() const
|
||||
{
|
||||
return STI_ARRAY;
|
||||
}
|
||||
|
||||
bool
|
||||
STArray::isEquivalent(const STBase& t) const
|
||||
{
|
||||
@@ -160,6 +178,12 @@ STArray::isEquivalent(const STBase& t) const
|
||||
return v != nullptr && v_ == v->v_;
|
||||
}
|
||||
|
||||
bool
|
||||
STArray::isDefault() const
|
||||
{
|
||||
return v_.empty();
|
||||
}
|
||||
|
||||
void
|
||||
STArray::sort(bool (*compare)(const STObject&, const STObject&))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user