|
| | BitVector () |
| |
| | BitVector (const BitVector &other) |
| |
| | BitVector (unsigned int len, unsigned int maxLen=0) |
| |
| | BitVector (const BitVector &other, unsigned int offs, unsigned int len=0) |
| |
| | BitVector (const char *str, unsigned int maxLen=0) |
| |
| bool | valid () const |
| |
| bool | get (FloatVector &dest) const |
| |
| bool | set (const FloatVector &input) |
| |
| void | xorMsb (uint32_t value, unsigned int offs=0, uint8_t len=32) |
| |
| void | xorMsb16 (uint16_t value, unsigned int offs=0, uint8_t len=16) |
| |
| uint64_t | pack (unsigned int offs=0, int len=-1) const |
| |
| void | unpack (uint64_t value, unsigned int offs=0, uint8_t len=64) |
| |
| void | unpackMsb (uint32_t value, unsigned int offs=0, uint8_t len=32) |
| |
| void | unpackMsb16 (uint16_t value, unsigned int offs=0, uint8_t len=16) |
| |
| bool | pack (ByteVector &dest) const |
| |
| bool | unpack (const ByteVector &src) |
| |
| String & | appendTo (String &buf, unsigned int offs=0, int len=-1) const |
| |
| String | toString (unsigned int offs, int len=-1) const |
| |
| bool | setSlice (const BitVector &other, unsigned int offs=0, unsigned int len=0) |
| |
| BitVector | head (unsigned int len) const |
| |
| bool | head (BitVector &dest, unsigned int len) const |
| |
| BitVector | tail (unsigned int len) const |
| |
| bool | tail (BitVector &dest, unsigned int len) const |
| |
| BitVector | slice (unsigned int offs, unsigned int len) const |
| |
| bool | slice (BitVector &dest, unsigned int offs, unsigned int len=0) const |
| |
| | SliceVector () |
| |
| | SliceVector (const SliceVector &other) |
| |
| | SliceVector (unsigned int len, const uint8_t *buf=0, unsigned int maxLen=0) |
| |
| | SliceVector (const SliceVector &v1, const SliceVector &v2) |
| |
| | SliceVector (const SliceVector &v1, const SliceVector &v2, const SliceVector &v3) |
| |
| | SliceVector (const SliceVector &other, unsigned int offs, unsigned int len=0) |
| |
| virtual | ~SliceVector () |
| |
| uint8_t * | data (unsigned int offs, unsigned int len) |
| |
| const uint8_t * | data (unsigned int offs, unsigned int len) const |
| |
| uint8_t * | data (unsigned int offs=0) |
| |
| const uint8_t * | data (unsigned int offs=0) const |
| |
| uint8_t * | data (unsigned int offs, unsigned int len, uint8_t *&eod) |
| |
| const uint8_t * | data (unsigned int offs, unsigned int len, const uint8_t *&eod) const |
| |
| unsigned int | length () const |
| |
| unsigned int | maxLen () const |
| |
| unsigned int | size () const |
| |
| unsigned int | available (unsigned int offs, int len=-1) const |
| |
| unsigned int | availableClamp (unsigned int clamp, unsigned int offs=0, int len=-1) const |
| |
| virtual unsigned int | vectorSize () const |
| |
| bool | resize (unsigned int len) |
| |
| void | resizeMax () |
| |
| void | steal (SliceVector &other) |
| |
| void | resetStorage (unsigned int len, unsigned int maxLen=0) |
| |
| bool | setSlice (const SliceVector &other, unsigned int offs=0, unsigned int len=0) |
| |
| SliceVector | head (unsigned int len) const |
| |
| bool | head (SliceVector &dest, unsigned int len) const |
| |
| SliceVector | tail (unsigned int len) const |
| |
| bool | tail (SliceVector &dest, unsigned int len) const |
| |
| SliceVector | slice (unsigned int offs, unsigned int len) const |
| |
| bool | slice (SliceVector &dest, unsigned int offs, unsigned int len=0) const |
| |
| bool | copy (const SliceVector &src, unsigned int len, unsigned int offs=0, unsigned int srcOffs=0) |
| |
| void | bzero (unsigned int offs, unsigned int len) |
| |
| void | bzero () |
| |
| void | fill (const uint8_t &value) |
| |
| void | apply (void(*func)(uint8_t &)) |
| |
| uint8_t | sum () const |
| |
| uint8_t | sumApply (uint8_t(*func)(const uint8_t &)) const |
| |
| float | sumApplyF (float(*func)(const uint8_t &)) const |
| |
| bool | sum (const SliceVector &other) |
| |
| void | sum (const uint8_t &value) |
| |
| bool | sub (const SliceVector &other) |
| |
| void | sub (const uint8_t &value) |
| |
| bool | mul (const SliceVector &other) |
| |
| void | mul (const uint8_t &value) |
| |
| void | mul (float value) |
| |
| uint8_t & | operator[] (unsigned int index) |
| |
| const uint8_t & | operator[] (unsigned int index) const |
| |
| uint8_t & | operator[] (signed int index) |
| |
| const uint8_t & | operator[] (signed int index) const |
| |
| bool | operator== (const SliceVector &other) const |
| |
| bool | operator!= (const SliceVector &other) const |
| |
| SliceVector & | operator= (const SliceVector &other) |
| |
| SliceVector & | operator+= (const SliceVector &other) |
| |
| SliceVector & | operator+= (const uint8_t &value) |
| |
| SliceVector & | operator-= (const SliceVector &other) |
| |
| SliceVector & | operator-= (const uint8_t &value) |
| |
| SliceVector & | operator*= (const SliceVector &other) |
| |
| SliceVector & | operator*= (const uint8_t &value) |
| |
| SliceVector & | operator*= (float value) |
| |
| bool | equals (const SliceVector &other) const |
| |
| String & | dump (String &buf, String &(*func)(String &s, const uint8_t &o, const char *sep, const char *fmt), const char *sep=",", const char *fmt=0) const |
| |
| String & | dump (String &buf, unsigned int lineLen, String &(*func)(String &s, const uint8_t &o, const char *sep, const char *fmt), unsigned int offset=0, const char *linePrefix=0, const char *suffix="\r\n", const char *sep=",", const char *fmt=0) const |
| |
| String & | hexify (String &buf, char sep=0) const |
| |
| String & | dumpHex (String &buf, unsigned int lineLen, unsigned int offset=0, const char *linePrefix=0, const char *suffix="\r\n") const |
| |
| int | unHexify (const char *str, unsigned int len, int sep=255) |
| |
| int | unHexify (const String &str, int sep=255) |
| |
| | SliceVector () |
| |
| | SliceVector (const SliceVector &other) |
| |
| | SliceVector (unsigned int len, const uint8_t *buf=0, unsigned int maxLen=0) |
| |
| | SliceVector (const SliceVector &v1, const SliceVector &v2) |
| |
| | SliceVector (const SliceVector &v1, const SliceVector &v2, const SliceVector &v3) |
| |
| | SliceVector (const SliceVector &other, unsigned int offs, unsigned int len=0) |
| |
| virtual | ~SliceVector () |
| |
| uint8_t * | data (unsigned int offs, unsigned int len) |
| |
| const uint8_t * | data (unsigned int offs, unsigned int len) const |
| |
| uint8_t * | data (unsigned int offs=0) |
| |
| const uint8_t * | data (unsigned int offs=0) const |
| |
| uint8_t * | data (unsigned int offs, unsigned int len, uint8_t *&eod) |
| |
| const uint8_t * | data (unsigned int offs, unsigned int len, const uint8_t *&eod) const |
| |
| unsigned int | length () const |
| |
| unsigned int | maxLen () const |
| |
| unsigned int | size () const |
| |
| unsigned int | available (unsigned int offs, int len=-1) const |
| |
| unsigned int | availableClamp (unsigned int clamp, unsigned int offs=0, int len=-1) const |
| |
| virtual unsigned int | vectorSize () const |
| |
| bool | resize (unsigned int len) |
| |
| void | resizeMax () |
| |
| void | steal (SliceVector &other) |
| |
| void | resetStorage (unsigned int len, unsigned int maxLen=0) |
| |
| bool | setSlice (const SliceVector &other, unsigned int offs=0, unsigned int len=0) |
| |
| SliceVector | head (unsigned int len) const |
| |
| bool | head (SliceVector &dest, unsigned int len) const |
| |
| SliceVector | tail (unsigned int len) const |
| |
| bool | tail (SliceVector &dest, unsigned int len) const |
| |
| SliceVector | slice (unsigned int offs, unsigned int len) const |
| |
| bool | slice (SliceVector &dest, unsigned int offs, unsigned int len=0) const |
| |
| bool | copy (const SliceVector &src, unsigned int len, unsigned int offs=0, unsigned int srcOffs=0) |
| |
| void | bzero (unsigned int offs, unsigned int len) |
| |
| void | bzero () |
| |
| void | fill (const uint8_t &value) |
| |
| void | apply (void(*func)(uint8_t &)) |
| |
| uint8_t | sum () const |
| |
| bool | sum (const SliceVector &other) |
| |
| void | sum (const uint8_t &value) |
| |
| uint8_t | sumApply (uint8_t(*func)(const uint8_t &)) const |
| |
| float | sumApplyF (float(*func)(const uint8_t &)) const |
| |
| bool | sub (const SliceVector &other) |
| |
| void | sub (const uint8_t &value) |
| |
| bool | mul (const SliceVector &other) |
| |
| void | mul (const uint8_t &value) |
| |
| void | mul (float value) |
| |
| uint8_t & | operator[] (unsigned int index) |
| |
| const uint8_t & | operator[] (unsigned int index) const |
| |
| uint8_t & | operator[] (signed int index) |
| |
| const uint8_t & | operator[] (signed int index) const |
| |
| bool | operator== (const SliceVector &other) const |
| |
| bool | operator!= (const SliceVector &other) const |
| |
| SliceVector & | operator= (const SliceVector &other) |
| |
| SliceVector & | operator+= (const SliceVector &other) |
| |
| SliceVector & | operator+= (const uint8_t &value) |
| |
| SliceVector & | operator-= (const SliceVector &other) |
| |
| SliceVector & | operator-= (const uint8_t &value) |
| |
| SliceVector & | operator*= (const SliceVector &other) |
| |
| SliceVector & | operator*= (const uint8_t &value) |
| |
| SliceVector & | operator*= (float value) |
| |
| bool | equals (const SliceVector &other) const |
| |
| String & | dump (String &buf, String &(*func)(String &s, const uint8_t &o, const char *sep, const char *fmt), const char *sep=",", const char *fmt=0) const |
| |
| String & | dump (String &buf, unsigned int lineLen, String &(*func)(String &s, const uint8_t &o, const char *sep, const char *fmt), unsigned int offset=0, const char *linePrefix=0, const char *suffix="\r\n", const char *sep=",", const char *fmt=0) const |
| |
| String & | hexify (String &buf, char sep=0) const |
| |
| String & | dumpHex (String &buf, unsigned int lineLen, unsigned int offset=0, const char *linePrefix=0, const char *suffix="\r\n") const |
| |
| int | unHexify (const char *str, unsigned int len, int sep=255) |
| |
| int | unHexify (const String &str, int sep=255) |
| |
| virtual | ~MathVectorBase () |
| |
| | GenObject () |
| |
| virtual | ~GenObject () |
| |
| virtual bool | alive () const |
| |
| virtual void | destruct () |
| |
| virtual const String & | toString () const |
| |
| virtual const String & | traceId () const |
| |
| virtual void * | getObject (const String &name) const |
| |
| NamedCounter * | getObjCounter () const |
| |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
| |
A slice vector holding bits.
This vector holds bit values using 1 byte. It implements methods operating on bits. NOTE: The array indexing operator allows setting invalid values (not 1 or 0). The pack/unpack methods are safe (they will handle non 0 values as bit 1). The comparison operators may fail for vectors containing values other than 0 or 1.