mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
add missing NGCORE_API and HashArchive & with const value
This commit is contained in:
parent
55971b3dde
commit
deab89adf8
@ -936,6 +936,11 @@ namespace ngcore
|
||||
Archive & operator & (char *& str) override
|
||||
{ char* s = str; while(*s != '\0') ApplyHash(*(s++)); return *this; }
|
||||
|
||||
// HashArchive can be used in const context
|
||||
template<typename T>
|
||||
Archive & operator& (const T& val) const
|
||||
{ return (*this) & const_cast<T&>(val); }
|
||||
|
||||
size_t GetHash() const { return hash_value; }
|
||||
|
||||
private:
|
||||
|
@ -131,7 +131,7 @@ public:
|
||||
return Test(i);
|
||||
}
|
||||
|
||||
bool operator==(const BitArray& other) const;
|
||||
NGCORE_API bool operator==(const BitArray& other) const;
|
||||
|
||||
/// invert all bits
|
||||
NGCORE_API BitArray & Invert ();
|
||||
@ -147,7 +147,7 @@ public:
|
||||
|
||||
NGCORE_API size_t NumSet () const;
|
||||
|
||||
void DoArchive(Archive& archive);
|
||||
NGCORE_API void DoArchive(Archive& archive);
|
||||
|
||||
private:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user