add Space::get_table_item() method
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2021, Tomasz Sowa
|
||||
* Copyright (c) 2008-2022, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -2577,6 +2577,18 @@ void Space::remove_value_table(bool only_clear)
|
||||
}
|
||||
|
||||
|
||||
Space * Space::get_table_item(size_t index)
|
||||
{
|
||||
if( is_table() && index < table_size() )
|
||||
{
|
||||
return value.value_table[index];
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010-2021, Tomasz Sowa
|
||||
* Copyright (c) 2010-2022, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -635,7 +635,7 @@ public:
|
||||
bool has_value(const wchar_t * field, const std::wstring & val) const;
|
||||
|
||||
|
||||
|
||||
Space * get_table_item(size_t index);
|
||||
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user