forked from bblanchon/ArduinoJson
23 lines
585 B
C++
23 lines
585 B
C++
![]() |
// Copyright Benoit Blanchon 2014
|
||
|
// MIT License
|
||
|
//
|
||
|
// Arduino JSON library
|
||
|
// https://github.com/bblanchon/ArduinoJson
|
||
|
|
||
|
#include "../../include/ArduinoJson/Internals/List.hpp"
|
||
|
|
||
|
#include "../../include/ArduinoJson/JsonPair.hpp"
|
||
|
#include "../../include/ArduinoJson/JsonVariant.hpp"
|
||
|
|
||
|
using namespace ArduinoJson;
|
||
|
using namespace ArduinoJson::Internals;
|
||
|
|
||
|
template <typename T>
|
||
|
int List<T>::size() const {
|
||
|
int nodeCount = 0;
|
||
|
for (node_type *node = _firstNode; node; node = node->next) nodeCount++;
|
||
|
return nodeCount;
|
||
|
}
|
||
|
|
||
|
template class List<JsonPair>;
|
||
|
template class List<JsonVariant>;
|