Skip to content

Commit

Permalink
Removing random_shuffle from algo in line with std. Porting a photosh…
Browse files Browse the repository at this point in the history
…op change back (#85)

Co-authored-by: jared wyles <[email protected]>
  • Loading branch information
jaredwy and jaredadobe authored Sep 9, 2021
1 parent b71f5d0 commit de1c85c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 72 deletions.
1 change: 0 additions & 1 deletion adobe/algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#if !ADOBE_IS_DEPRECATED_ERROR(100039)
#include <adobe/algorithm/pin.hpp>
#endif
#include <adobe/algorithm/random_shuffle.hpp>
#include <adobe/algorithm/reduce.hpp>
#include <adobe/algorithm/remove.hpp>
#include <adobe/algorithm/replace.hpp>
Expand Down
71 changes: 0 additions & 71 deletions adobe/algorithm/random_shuffle.hpp

This file was deleted.

5 changes: 5 additions & 0 deletions adobe/eve.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,12 @@ class eve_t
*/

void set_visible(iterator, bool);

/*!
\brief set_layout_attributes
*/

void set_layout_attributes(iterator, const layout_attributes_t&);

/*!
\brief This call performs the layout, it will call each element to get its dimentions, solve the
Expand Down
7 changes: 7 additions & 0 deletions source/eve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ class eve_t::implementation_t : private extents_slices_t {
iterator add_placeable(iterator parent, const layout_attributes_t& initial,
bool is_container_type, poly_placeable_t& placeable, bool reverse);
void set_visible(iterator, bool);
void set_layout_attributes(iterator, const layout_attributes_t&);

private:
void solve(slice_select_t select);
Expand Down Expand Up @@ -298,6 +299,10 @@ eve_t::iterator eve_t::add_placeable(iterator parent, const layout_attributes_t&

void eve_t::set_visible(iterator c, bool visible) { return object_m->set_visible(c, visible); }

void eve_t::set_layout_attributes(iterator c, const layout_attributes_t& geometry)
{ return object_m->set_layout_attributes(c, geometry); }


/**************************************************************************************************/

#if 0
Expand Down Expand Up @@ -340,6 +345,8 @@ eve_t::iterator eve_t::implementation_t::add_placeable(iterator parent,

void eve_t::implementation_t::set_visible(iterator c, bool visible) { c->visible_m = visible; }

void eve_t::implementation_t::set_layout_attributes(iterator c, const layout_attributes_t& geometry) { c->geometry_m = geometry; }

/**************************************************************************************************/

void eve_t::implementation_t::solve(slice_select_t select) {
Expand Down

0 comments on commit de1c85c

Please sign in to comment.