<commit_before>// @(#)root/eve7:$Id$
// Author: <NAME> 2007

/*************************************************************************
 * Copyright (C) 1995-2019, <NAME> and <NAME>.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT7_REveSecondarySelectable
#define ROOT7_REveSecondarySelectable

#include "Rtypes.h"

#include <set>

// XXXX class TGLSelectRecord;

namespace ROOT {
namespace Experimental {

class REveSecondarySelectable
{
private:
   REveSecondarySelectable(const REveSecondarySelectable &) = delete;
   REveSecondarySelectable &operator=(const REveSecondarySelectable &) = delete;

public:
   typedef std::set<Int_t>                SelectionSet_t;

protected:
   Bool_t fAlwaysSecSelect{kFALSE}; // Always do secondary-selection in GL.

   SelectionSet_t fSelectedSet;    // Selected indices.
   SelectionSet_t fHighlightedSet; // Highlighted indices.

   // XXXX
   // void ProcessGLSelectionInternal(TGLSelectRecord& rec, SelectionSet_t& sset);

public:
   REveSecondarySelectable() = default;
   virtual ~REveSecondarySelectable() {}

   Bool_t GetAlwaysSecSelect()   const { return fAlwaysSecSelect; }
   void   SetAlwaysSecSelect(Bool_t f) { fAlwaysSecSelect = f; }

   const SelectionSet_t &RefSelectedSet()    const { return fSelectedSet; }
   const SelectionSet_t &RefHighlightedSet() const { return fHighlightedSet; }

   // XXXX
   // void   ProcessGLSelection(TGLSelectRecord& rec);
};

} // namespace Experimental
} // namespace ROOT

#endif<commit_msg>Add non-const getter for selected set<commit_after>// @(#)root/eve7:$Id$
// Author: <NAME> 2007

/*************************************************************************
 * Copyright (C) 1995-2019, <NAME> and <NAME>.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT7_REveSecondarySelectable
#define ROOT7_REveSecondarySelectable

#include "Rtypes.h"

#include <set>

// XXXX class TGLSelectRecord;

namespace ROOT {
namespace Experimental {

class REveSecondarySelectable
{
private:
   REveSecondarySelectable(const REveSecondarySelectable &) = delete;
   REveSecondarySelectable &operator=(const REveSecondarySelectable &) = delete;

public:
   typedef std::set<Int_t>                SelectionSet_t;

protected:
   Bool_t fAlwaysSecSelect{kFALSE}; // Always do secondary-selection in GL.

   SelectionSet_t fSelectedSet;    // Selected indices.
   SelectionSet_t fHighlightedSet; // Highlighted indices.

   // XXXX
   // void ProcessGLSelectionInternal(TGLSelectRecord& rec, SelectionSet_t& sset);

public:
   REveSecondarySelectable() = default;
   virtual ~REveSecondarySelectable() {}

   Bool_t GetAlwaysSecSelect()   const { return fAlwaysSecSelect; }
   void   SetAlwaysSecSelect(Bool_t f) { fAlwaysSecSelect = f; }

   SelectionSet_t &RefSelectedSet()    { return fSelectedSet; }
   SelectionSet_t &RefHighlightedSet() { return fHighlightedSet; }

   // XXXX
   // void   ProcessGLSelection(TGLSelectRecord& rec);
};

} // namespace Experimental
} // namespace ROOT

#endif
{'fraction_non_alphanumeric': 0.1648560564910375, 'fraction_numerical': 0.008147745790331342, 'mean_word_length': 2.9559613319011815, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1684285', 'n_tokens_mistral': 1059, 'n_tokens_neox': 956, 'n_words': 228}